package com.aidong.discount.biz.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.coupons.biz.MstCouponsBiz;
import com.aidong.coupons.dao.MstCouponsDao;
import com.aidong.discount.biz.MstDiscountBiz;
import com.aidong.discount.dao.MstDiscountDao;
@Service("mstDiscountBiz")
public class MstDiscountBizImpl implements MstDiscountBiz{
	
	private MstDiscountDao mstDiscountDao;
	
	@Autowired
	public void setMstCouponsDao(MstDiscountDao mstDiscountDao) {
		this.mstDiscountDao = mstDiscountDao;
	}


	/**
	 * 代金券是否可用
	 */
	@Override
	public Map<String, Object> discountUsable(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstDiscountDao.discountUsable(map);
	}


	@Override
	public int selectDiscountReverse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstDiscountDao.selectDiscountReverse(map);
	}


	@Override
	public void setDiscountCanUse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		mstDiscountDao.setDiscountCanUse(map);
	}


	@Override
	public Map<String, Object> getDiscountInfo(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstDiscountDao.getDiscountInfo(map);
	}


}
